home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 September
/
Macworld (1998-09).dmg
/
Serious Demos
/
DesignWorks 4.0.1 Demo PPC
/
Design Kits
/
Generic Spice
/
Scripts
/
SPICE Info Script
< prev
next >
Wrap
Text File
|
1997-05-27
|
847b
|
34 lines
{
Copyright 1997 by Capilano Computing Systems Ltd.
Script to prompt for a Spice code for the selected devices.
First, turn off report generation.
}
$REPORTOFF
$PROGRESS $OFF
{
Find selected devices and pretend they're sorted so we can merge all values
in the Spice field into one.
}
$FIND $DEVICES $SELECTED
$SORT $DEVICES $RAW
$COMBDEVSON
{
If nothing's selected, quit
}
$IF($EQ($DEVCOUNT, 0))
$ALERT1(No devices are selected!)
$ABORT
$END
{
If we have more than one value in the selected devices, use an empty initial value
}
$DEVICES$SETVAR(_SpiceVal, $IF($EQ($COUNTVALUES(&Spice), 1))&Spice$END)
{
Put up a prompt box. Note that we abort if the user presses Cancel
}
$SETVAR(_SpiceVal, $PROMPT2(Enter SPICE parameters for selected devices, &_SpiceVal))
{
Set the Spice in all devices.
}
$DEVICES$SETATTR(Spice, &_SpiceVal)